<template>
  <div id="oursservice">
    <div class="main">
      <Row>
        <!-- 大标题 -->
        <Col span="6" class="maxTitle titleBorder">{{sursservice.maxTitle}}</Col>
        <Col span="10" class="titleBorder">&nbsp</Col>
        <Col span="8" class="titleBorder">&nbsp</Col>
      </Row>
      <div class="content">
        <Row>
          <Col span="24">&nbsp</Col>
        </Row>
        <Row>
          <Col span="24">&nbsp</Col>
        </Row>
        <Row>
          <!-- 特色文字绿色和文字背景颜色 -->
          <Col
            span="12"
            class="tese"
            :style="'background-color:'+sursservice.backgcolor"
          >{{sursservice.maxTese}}</Col>
          <Col span="12"></Col>
        </Row>
        <Row>
          <Col span="24" class="description">
          <!-- 内容文字 -->
            <p v-for="(item,index) in sursservice.items" :key="index">{{item}}</p>
          </Col>
        </Row>
        <Row>
          <!-- 底部线条颜色 -->
          <Col span="24" class="bttm" :style="'background-color:'+sursservice.backgcolor"></Col>
        </Row>
      </div>
    </div>
  </div>
</template>

<script>
//导入iview-ui 组件
import { Row, Col } from "view-design";
export default {
  name: "oursservice",
  //注册组件
  components: {
    Row,
    Col
  },
  //传入属性
  props: ["sursservice"],
  data() {
    return {};
  },
  computed: {},
  watch: {},
  methods: {},
  created() {},
  mounted() {},
  beforeCreate() {}, //生命周期 - 创建之前
  beforeMount() {}, //生命周期 - 挂载之前
  beforeUpdate() {}, //生命周期 - 更新之前
  updated() {}, //生命周期 - 更新之后
  beforeDestroy() {}, //生命周期 - 销毁之前
  destroyed() {}, //生命周期 - 销毁完成
  activated() {} //如果页面有keep-alive缓存功能，这个函数会触发
};
</script>

<style scoped>
/* 局部UI样式修改 */
.main {
  margin: 30px 20px;
}
.content {
  font-size: 14px;
  background-color: #fff;
  margin-top: 20px;
}
.maxTitle {
  border-bottom: 2px solid #33333388 !important;
}
.titleBorder {
  font-size: 15px;
  border-bottom: 2px solid #e9e9e9;
  padding-bottom: 5px;
}
.tese {
  padding: 15px 0;
  text-align: center;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}
.description {
  line-height: 28px;
  padding: 25px 15px 50px;
  text-indent: 3px;
}
.bttm {
  height: 4px;
}
</style>